package com.yic.module.qms.controller.admin.inspectprocess.vo;

import com.yic.module.qms.controller.admin.inspectinfo.vo.InspectInfoCreateReqVO;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.Valid;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 过程检验创建 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class InspectProcessCreateReqVO extends InspectProcessBaseVO {

    @Schema(description = "检验项目", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检验项目不能为空")
    @Valid
    private List<InspectInfoCreateReqVO> entryList;

    @Schema(description = "检验类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "检验类型不能为空")
    private Integer inspectType;

}
